package com.cloud.util.constants;

/**
 * @author: hxy
 * @description: 通用常量类, 单个业务的常量请单开一个类, 方便常量的分类管理
 * @date: 2017/10/24 10:15
 */
public class Constants {

	public static final Integer SUCCESS_CODE = 100;
	public static final String SUCCESS_MSG = "请求成功";

	/**
	 * session中存放用户信息的key值
	 */
	public static final String SESSION_USER_INFO = "userInfo";
	public static final String SESSION_USER_PERMISSION = "userPermission";

	/**
	 * source_flag
	 */
	public static final String SOURCE_FLAG_RAW = "1";
	public static final String SOURCE_FLAG_NOTIFY = "2";

	/**
	 * task_status  1.创建 2.成功 3.失败 4.取消 5.部分成功
	 */
	public static final String TASK_STATUS_CREATE = "1";
	public static final String TASK_STATUS_SUCCESS = "2";
	public static final String TASK_STATUS_PARTIAL_SUCCESS = "3";
	public static final String TASK_STATUS_FAILURE = "4";
	public static final String TASK_STATUS_CANCEL = "5";
	public static final String TASK_STATUS_ASSIGN_FAILURE = "8";
	public static final String TASK_STATUS_ASSIGN_SUCCESS = "9";


	/**
	 * TaskType
	 */
	public static final String TASK_TYPE_VIDEO = "1";
	public static final String TASK_TYPE_IMAGE = "2";
}
